public abstract class Shape {
    Shape(int bottomLong,int height){
        this.bottomLong=bottomLong;
        this.height=height;
    }
    abstract void place();
    int bottomLong;
    int height;
    public static void main(String[] args) {
        new Shape(12,45){
            @Override
            void place() {
                System.out.println("矩形面积是"+this.bottomLong*this.height);
            }
        }.place();

        new Shape(44,16){

            @Override
            void place() {
                System.out.println("三角形面积是"+this.bottomLong*this.height);
            }
        }.place();
    }
}
